﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZR.Model.Enums;

namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 工位条码关系记录表
    /// </summary>
    [SugarTable("cks_barcode_rel_rec")]
    [Table(Name = "cks_barcode_rel_rec")]
    public class CksBarcodeRelationshipRecord : BaseEntity {

        /// <summary>
        /// 工位Id 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Column(IsPrimary = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// PlcID 
        /// </summary>
        public int PlcID { get; set; }

        /// <summary>
        /// 读取DB
        /// </summary>
        public int ReadDB { get; set; }

        /// <summary>
        /// 条码
        /// </summary>
        public string PrimaryCode { get; set; }

        /// <summary>
        /// 子码
        /// </summary>
        public string SubcodeCode { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        [SugarColumn(ColumnDataType = "int")]
        [Column(MapType = typeof(int))]
        public eBarCodeRelType Type { get; set; }


        /// <summary>
        /// CreatedTime 
        /// </summary>
        public DateTime? CreatedTime { get; set; }
    }
}
